# coding:utf-8
from . import api
from ihome import db,models
from flask import current_app


@api.route('/index')
def index():
    # logging.error()   # 记录错误信息
    # logging.warn()   # 警告
    # logging.info()   # 信息
    # logging.debug()   # 调试
    current_app.logger.error("error info")
    current_app.logger.warn("warn info")
    current_app.logger.info("info info")
    current_app.logger.debug("debug info")
    return 'index page xuhongbin'